package com.baiyun.stock.pojo.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel(description = "板块数据")
public class StockBlockDomain {
    /**
     * 公司数量
     */
    @ApiModelProperty(value = "公司数量",name = "companyNum")
    private Integer companyNum;
    /**
     * 交易量
     */
    @ApiModelProperty(value = "交易量",name = "tradeAmt")
    private Long tradeAmt;
    /**
     * 板块编码
     */
    @ApiModelProperty(value = "板块编码",name = "code")
    private String code;
    /**
     * 平均价
     */
    @ApiModelProperty(value = "平均价",name = "avgPrice")
    private BigDecimal avgPrice;
    /**
     * 板块名称
     */
    @ApiModelProperty(value = "板块名称",name = "name")
    private String name;
    /**
     * 当前日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @ApiModelProperty(value = "当前日期",name = "curDate")
    private Date curDate;
    /**
     *交易金额
     */
    @ApiModelProperty(value = "交易金额",name = "tradeVol")
    private BigDecimal tradeVol;
	/**
     * 涨跌率
     */
    @ApiModelProperty(value = "涨跌率",name = "updownRate")
    private BigDecimal updownRate;
}